package com.saile.domain;

import java.util.Date;

public class User {
    /**
     * 经理
     */
    public static final Byte USER_TYPE_MANAGER = 1;
    /**
     * 普通
     */
    public static final Byte USER_TYPE_NORMAL = 2;

    /**
     * 医生
     */
    public static final Byte DISTRIBUTOR_TYPE_DOCTOR = 1;
    /**
     * 销售员
     */
    public static final Byte DISTRIBUTOR_TYPE_NORMAL = 2;
    /**
     * 销售经理
     */
    public static final Byte DISTRIBUTOR_TYPE_MANAGER = 3;
    /**
     * 省代理
     */
    public static final Byte DISTRIBUTOR_TYPE_PROVINCE_MANAGER = 4;

    /**
     * 大区经理
     */
    public static final Byte DISTRIBUTOR_TYPE_REGIONAL_MANAGER = 5;
    /**
     * 大区经理
     */
    public static final Byte DISTRIBUTOR_TYPE_BIG_MANAGER = 6;


    /**
     * 直接到公众号
     */
    public static final Byte DISTRIBUTOR_IMG_TYPE_WECHAT=1;
    /**
     * 直接到产品页面
     */
    public static final Byte DISTRIBUTOR_IMG_TYPE_PRODUCT=2;

    private Long tid;
    private Long superiorId;
    private String superiorName;

    private String userName;
    private String nickName;

    private String phone;
    private String passWord;

    private String userAddress;
    private String sourceQRCode;
    private String openId;
    private Byte userType;
    private Byte distributorType;
    private Byte distributorImgType;
    private String distributorCode;

    private Date createTime;


    public Long getTid() {
        return tid;
    }

    public void setTid(Long tid) {
        this.tid = tid;
    }

    public Long getSuperiorId() {
        return superiorId;
    }

    public void setSuperiorId(Long superiorId) {
        this.superiorId = superiorId;
    }

    public String getSuperiorName() {
        return superiorName;
    }

    public void setSuperiorName(String superiorName) {
        this.superiorName = superiorName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getSourceQRCode() {
        return sourceQRCode;
    }

    public void setSourceQRCode(String sourceQRCode) {
        this.sourceQRCode = sourceQRCode;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public Byte getUserType() {
        return userType;
    }

    public void setUserType(Byte userType) {
        this.userType = userType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDistributorCode() {
        return distributorCode;
    }

    public void setDistributorCode(String distributorCode) {
        this.distributorCode = distributorCode;
    }

    public Byte getDistributorType() {
        return distributorType;
    }

    public void setDistributorType(Byte distributorType) {
        this.distributorType = distributorType;
    }

    public Byte getDistributorImgType() {
        return distributorImgType;
    }

    public void setDistributorImgType(Byte distributorImgType) {
        this.distributorImgType = distributorImgType;
    }

    @Override
    public String toString() {
        return "User{" +
                "tid=" + tid +
                ", superiorId=" + superiorId +
                ", superiorName='" + superiorName + '\'' +
                ", userName='" + userName + '\'' +
                ", phone='" + phone + '\'' +
                ", passWord='" + passWord + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", sourceQRCode='" + sourceQRCode + '\'' +
                ", openId='" + openId + '\'' +
                ", userType=" + userType +
                ", distributorType=" + distributorType +
                ", distributorImgType=" + distributorImgType +
                ", distributorCode='" + distributorCode + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}